body{
    margin: 0;
    padding: 0;
}

/* navigating bar*/
.top-nav{
    position: absolute;
    top: 50px;
    left: 70px;
    height: 40px;
    /* width: 600px; chagned to this value in js */
    display: block;
    opacity: .0;
    transition: opacity .5s linear;
    background-color: rgba(255, 255, 255, 0.3);
    z-index: 1;
}

.top-nav .user-small{
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 5px soild #ccc;
    position: absolute;
    top: -30px;
    left: -50px;
    background-color: rgba(255, 255, 255, 0.5);
}

.top-nav .items{
    box-sizing: border-box;
    width: 0px;
    height: 40px;
    overflow: hidden;
    transition: width 1s ease .5s;
}

.items ul{
    margin: 0;
    padding: 0;
    padding-left: 100px;
    width: 600px;
    height: 40px;
    list-style-type: none;
}

.top-nav .item{
    display: block;
    box-sizing: border-box;
    height: 100%;
    width: 115px;
    margin: 0;
    margin-left: 5px;
    margin-right: 5px;
    padding: 0;
    float: left;
    text-align: center;
    border-bottom: 0px solid blue;
    transition: border-bottom .2s ease;
}

.top-nav .item a{
    line-height: 40px;
    color: #7676c2;
    font-family: Arial;
    font-size: large;
    font-weight: bold;
    transition: top .3s ease;
}

.top-nav .item.active, .item:hover{
    border-bottom: 5px solid blue;
}

.top-nav .item a:link{
    text-decoration: none;
}

/* head-frame(main-frame) */

.head-frame{
    width: 100%;
    height: 600px;
    transition: height 1s ease;
    position: relative;
    overflow: hidden;
}

.head-frame:after{
    display: block;
    content: ',';
    position: absolute;
    bottom: 0px;
    width: 100%;
    height: 30px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 1));
}

.head-frame .bg{
    width: 100%;
    min-width: 1280px;
    min-height: 640px;
    position: absolute;
    bottom: 0;
    left: 0;
}

/* pages */
.head-frame .container{
    position: absolute;
    top: 100px;
    left: 50%;
    width: 800px;
    margin-left: -400px;
    bottom: 50px;
    overflow: hidden;
}
.container > ul.pages{
    position: relative;
    list-style-type: none;
    width: 600%;
    left: -10%;
    height: 100%;
    margin: 0;
    padding: 0;
    transition: all .3s ease;
}

.container .page{
    display: block;
    float: left;
    position: relative;
    width: 16.6666%;
    height: 100%;
    margin-left: 1.66666%;
    margin-right: 1.66666%;
}

/* cover page */
.cover{
    font-family: Arial, sans-serif;
}
/*           warning */
.cover .warning:before{
    display: inline-block;
    content: 'Warning: ';
    font-style: italic;
    color: red;
}
.cover .warning{
    text-align: center;
    font-size: medium;
    width: 80%;
    margin: auto;
    padding: 20px;
    background-color: rgba(255, 255, 170, 0.7);
}
/*           arrow */
.cover a{
    position: absolute;
    left: 50%;
    top: 50%;
    margin: -40px 0 0 -85px;
    color: #ff0;
    display: block;
    width: 100px;
    height: 80px;
    line-height: 80px;
    font-size: 48px;
    text-align: center;
    background-color: rgba(0, 200, 0, 0.7);
}
.cover a .arrow{
    display: block;
    position: absolute;
    left: 100px;
    top: -30px;
    width: 0px;
    height: 0px;
    border: 70px solid transparent;
    border-left-color: rgba(0, 200, 0, 0.7);
}
.cover a:link{
    text-decoration: none;
}

/*             text */
.cover p.intro{
    margin: 0;
    word-break: never;
    position: absolute;
    left: 50%;
    bottom: 40px;
    transform: translateX(-50%);
    -webkit-transform: translateX(-50%);
    -moz-transform: translateX(-50%);
    font-size: xx-large;
    font-weight: bold;
    padding: 5px 20px 5px 20px;
    background-color: rgba(255, 255, 255, 0.7);
}
/* basic info & contact page */
table{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    -webkit-transform: translate(-50%, -50%);
    -moz-transform: translate(-50%, -50%);
    width: 80%;
    margin: 0;
    border-collapse: collapse;
    line-height: 1.5em;
}

table tr{
    display: block;
    margin-top: 10px;
    padding: 10px 0 10px 0;
    background-color: rgba(255, 255, 255, 0.7);
}

table th{
    display: inline-block;
    width: 50%;
    text-align: center;
}

table td{
    display: inline-block;
    text-align: left;
}

/* info text in contact page */
.contact-p .info:before{
    display: inline-block;
    content: 'info: ';
    font-style: italic;
    color: white;
}
.contact-p .info{
    box-sizing: border-box;
    position: absolute;
    bottom: 20px;
    left: 10%;
    text-align: center;
    font-size: medium;
    width: 80%;
    margin: auto;
    padding: 20px;
    background-color: rgba(100, 255, 100, 0.7);
}

/* fave page */
.fave-p section{
    margin-top: 40px;
    float: left;
    width: 30%;
    height: 400px;
    margin-left: 3.3333%;
    background-color: rgba(255, 255, 255, 0.7);
}

.fave-p .pic{
    box-sizing: border-box;
    width: 90%;
    margin: 10% auto 0 auto;
}
.fave-p .pic img{
    min-width: 100%;
}

.fave-p .desc{
    padding: 20px;
}
/* skills page */
.skills-p section{
    position: relative;
    margin: 20px auto 0 auto;
    width: 500px;
    height: 200px;
    background-color: rgba(255, 255, 255, 0.7)
}

.skills-p section .pic{
    position: absolute;
    top: 10px;
    bottom: 10px;
    width: 140px;
    overflow: hidden;
}

.skills-p section .desc{
    padding: 20px;
}

.skills-p section:nth-child(even) .pic{
    right: 10px;
}
.skills-p section:nth-child(even) .desc{
    margin-right: 150px;
}

.skills-p section:nth-child(odd) .pic{
    left: 10px;
}
.skills-p section:nth-child(odd) .desc{
    margin-left: 150px;
}

.skills-p section .pic img{
    width: 100%;
    min-width: 140px;
    min-height: 180px;
}

.skills-p section .code-logo{
    background-color: #000;
    width: 140px;
    height: 180px;
    line-height: 180px;
    margin: 0;
    padding: 0;
    font-size: 26px;
    font-weight: bold;
    text-align: center;
    color: #1a1;
}

/* debug */
.debug.header{
    position: absolute;
    font-family: Arial sans-serif;
    font-size: 48px;
    font-weight: bold;
    margin: 0;
    color: gray;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    -webkit-transform: translate(-50%, -50%);
    -moz-transform: translate(-50%, -50%);
}

/* footer */

footer{
    margin-top: 70px;
    margin-left: auto;
    margin-right: auto;
    padding-top: 20px;
    width: 70%;
    text-align: center;
}

footer p{
    color: #777;
}
